package com.xgjweb.fsi.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.xgjweb.fsi.domain.Link;

public interface ILinkService {
	
	
	/**
	 * 初始化Sort
	 */
	public Integer initSort()throws Exception;
	/**
	 * 添加链接
	 */
	public ActionForward addLink(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception ;
	/**
	 * 删除链接
	 */
	public Boolean deleteLink(Link link) throws Exception;

	/**
	 * 查询链接
	 */
	public List<com.xgjweb.fsi.domain.Link> queryLink()
			throws Exception;

	/**
	 * 查找链接
	 */
	public Link findLink(Link link) throws Exception;

	/**
	 * 更新链接
	 */
	public Boolean updateLink(Link link) throws Exception;
}
